import { GET_HOME_SWIPER_DATA, GET_HOME_SWIPER_IMG } from '../actionType'

const initialState = {
  title: "zff商城",
  swiperList: [],
  navs: []
}

export default (state = initialState, { type, payload }) => {
  switch (type) {

    case GET_HOME_SWIPER_DATA:
      return { ...state, ...payload }
    case GET_HOME_SWIPER_IMG:
      return { ...state, ...payload }
    default:
      return state
  }
}